/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aviso.property.helpers;

import aviso.property.entity.Property;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

/**
 *
 * @author avgusti
 */
public class PropertyValuePairs implements Serializable {

    Property property;
    PropertyFilter filter;
    Map<String, PropertyValueCountBase> vpvp = new TreeMap<String, PropertyValueCountBase>();
    private List<String> _tl;
    private int _ts;

    public List<String> listKeys() {
        if (_tl == null || _ts != vpvp.size()) {
            _tl = new ArrayList<String>(vpvp.keySet());
        }
        return _tl;
    }

    public PropertyFilter getFilter() {
        return filter;
    }

    public void setFilter(PropertyFilter filter) {
        this.filter = filter;
    }

    public PropertyValuePairs() {
    }

    public PropertyValuePairs(Property property) {
        this.property = property;
    }

    public Property getProperty() {
        return property;
    }

    public void setProperty(Property property) {
        this.property = property;
    }

    public Map<String, PropertyValueCountBase> getVpvp() {
        return vpvp;
    }

    public void setVpvp(Map<String, PropertyValueCountBase> vpvp) {
        this.vpvp = vpvp;
    }
}
